<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="jquery-3.1.1.js"></script>
    <title>jquery定时器</title>
</head>
<body>
<div id="clock"></div>
<script>
    $(function () {
        setInterval(function () {
            $('#clock').html(new Date());
        },1000)
    })



</script>
</body>
</html>